using System;
using System.Collections;

namespace SqlRunner.UserInterfaceStatus
{
	/// <summary>
	/// Summary description for Groups.
	/// </summary>
	public class Groups
	{

		#region Private Instances

		private ArrayList _groups = new ArrayList();

		#endregion
		#region Public Methods

		public void AddGroup(GroupControls group)
		{
			if ( _groups.IndexOf(group) == -1 )
			{
				_groups.Add(group);
			}
		}

		public void UpdateStatus(Status status)
		{
			foreach (GroupControls _group in _groups)
			{
				_group.UpdateProperty(status);
			}
		}

		#endregion

	}
}
